package org.knot.mockejb3;


/**
 * Provides Session bean-specific information required by MockContainer 
 * to deploy session EJB.
 * The only piece if session-bean specific data is <code>isStateful</code> flag. 
 *  
 */
public class SessionBeanDescriptor extends BasicEjbDescriptor  {
    
    /**
     * Creates a new instance of the descriptor.
     * @param jndiName  jndiName to bind Home to. Note that MockEjb does not support
     * bean-scoped context, so this name must be unique.
     * @param homeClass class of the home interface 
     * @param ifaceClass class of the business interface, remote or local
     * @param beanClass class of the implementation class 
     */     
    // TODO: Deprecate?
    public SessionBeanDescriptor( String jndiName, Class ifaceClass, 
        Class beanClass ) {

        super(jndiName,  ifaceClass, beanClass );
    }

    /**
     * Creates a new instance of the descriptor.
     * @param jndiName  jndiName to bind Home to. Note that MockEjb does not support
     * bean-scoped context, so this name must be unique.
     * @param homeClass class of the home interface 
     * @param ifaceClass class of the business interface, remote or local
     * @param bean instance of a bean implementation class. 
     */     
    public SessionBeanDescriptor( String jndiName,  Class ifaceClass, 
            Object bean ) {
        super(jndiName, ifaceClass, bean );
    }

}
